package com.authority.entry;

import java.io.Serializable;
import java.util.Date;

import com.authority.common.UserTypeEnum;

/** 
 * @Description: 用户表
 * @author limeng.g
 * @date 2015年10月14日 下午4:16:58 
 *  
 */  
public class AuthUserDO  implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;
	
	/**
	 * 组织ID
	 */
	private Long organId;
	
	/**
	 * 创建时间
	 */
	private Date gmtCreate;
	
	/**
	 * 修改时间
	 */
	private Date gmtModified;
	
	/**
	 * 账号
	 */
	private String account;
	
	/**
	 * 密码
	 */
	private String password;
	
	/**
	 * 用户名
	 */
	private String userName;
	
	/**
	 * 类型
	 */
	private Integer type;
	
	/**
	 * 状态
	 */
	private Integer status;
	
	/**
	 * 操作人ID
	 */
	private Long operatorId;
	
	/**
	 * 最后一次登录时间
	 */
	private Date lastLoginTime;
	private String lastLoginTimeString;
	
	private String lastLoginIp;
	
	/**
	 * 工号
	 */
	private String workNumber;
	
	/**
	 * 电话
	 */
	private String tel;

	/**
	 * 所属组织名称
	 */
	private String organName;
	
	/**
	 * 角色名称集合
	 */
	private String roleNames;
	private String roleIdList; //角色id，竖线分割
	
	public String getRoleIdList() {
		return roleIdList;
	}

	public void setRoleIdList(String roleIdList) {
		this.roleIdList = roleIdList;
	}

	public String getLastLoginTimeString() {
		return lastLoginTimeString;
	}

	public void setLastLoginTimeString(String lastLoginTimeString) {
		this.lastLoginTimeString = lastLoginTimeString;
	}

	/**
	 * 总数
	 */
	private Integer count;
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
		this.lastLoginTimeString=UserTypeEnum.formatDateToString(lastLoginTime,"");
	}

	public String getWorkNumber() {
		return workNumber;
	}

	public void setWorkNumber(String workNumber) {
		this.workNumber = workNumber;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Long getOrganId() {
		return organId;
	}

	public void setOrganId(Long organId) {
		this.organId = organId;
	}

	public String getOrganName() {
		return organName;
	}

	public void setOrganName(String organName) {
		this.organName = organName;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

}
